﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace EmptoolWebApp.WebApi
{
    /// <summary>
    /// Facility controller to ad
    /// </summary>
    public class FacilityController : BaseApiController
    {
        // GET: api/Facility
        /// <summary>
        /// Get list of facility
        /// </summary>
        /// <returns></returns>
        public IEnumerable<string> Get()
        {
            return new string[] { "value1", "value2" };
        }

        // GET: api/Facility/5
        /// <summary>
        /// Get specific facility detail
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        [System.Web.Http.Description.ApiExplorerSettings(IgnoreApi=true)]
        public string Get(int id)
        {
            return "value";
        }

        // POST: api/Facility
        /// <summary>
        /// Update a facility
        /// </summary>
        /// <param name="value"></param>
        public void Post([FromBody]string value)
        {
        }

        // PUT: api/Facility/5
        /// <summary>
        /// Add a facility
        /// </summary>
        /// <param name="id"></param>
        /// <param name="value"></param>
        public void Put(int id, [FromBody]string value)
        {
        }

        // DELETE: api/Facility/5
        /// <summary>
        /// Remove a facility from the application.
        /// </summary>
        /// <param name="id"></param>
        public void Delete(int id)
        {
        }
    }
}
